package com.zygh.lz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zygh.lz.entity.Xrelation;
import org.apache.ibatis.annotations.Param;

public interface XrelationMapper extends BaseMapper<Xrelation> {
    int deleteByPrimaryKey(Integer id);

    int insert(Xrelation record);

    int insertSelective(Xrelation record);

    Xrelation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Xrelation record);

    int updateByPrimaryKey(Xrelation record);

    int deleteById(@Param("staffId") Integer staffId,
                   @Param("xareaId") Integer xareaId);

    int deleteByXareaid(Integer xareaId);

    int deleteByStaffId(Integer staffId);


    Xrelation findXrealationByid(Integer staffId, Integer xareaId);

}